home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Embed / Include / EmbedSel.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.6 KB  |  89 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                EmbedSel.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Author:                M.Boetcher
  7. //
  8. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef EMBEDSEL_H
  13. #define EMBEDSEL_H
  14.  
  15. // ----- FrameWork Includes -----
  16.  
  17. #ifndef FWSLCING_H
  18. #include "FWSlcing.h"
  19. #endif
  20.  
  21. //========================================================================================
  22. //    Forward Declarations
  23. //========================================================================================
  24.  
  25. #if FW_LIB_EXPORT_PRAGMAS
  26. #pragma import on
  27. #endif
  28. class FW_CLASS_ATTR FW_CCloneInfo;
  29. #if FW_LIB_EXPORT_PRAGMAS
  30. #pragma import off
  31. #endif
  32.  
  33. class FW_CLASS_ATTR CEmbedPart;
  34. class FW_CLASS_ATTR CEmbedProxy;
  35.  
  36. //========================================================================================
  37. //    class CEmbedSelection
  38. //========================================================================================
  39.  
  40. class FW_CLASS_ATTR CEmbedSelection : public FW_CEmbeddingSelection
  41. {
  42.     
  43. //----------------------------------------------------------------------------------------
  44. //    Initialization/Destruction
  45. //
  46.   public:
  47.     CEmbedSelection(Environment* ev, CEmbedPart* embeddingPart);
  48.     virtual ~CEmbedSelection();
  49.     
  50. //----------------------------------------------------------------------------------------
  51. //    Inherited API
  52. //
  53.   public:
  54.     virtual void        CloseSelection(Environment* ev);
  55.     virtual FW_Boolean    ClearSelection(Environment* ev);
  56.     virtual FW_Boolean    IsEmpty(Environment* ev) const;
  57.     virtual void        SelectAll(Environment* ev);
  58.  
  59.     virtual FW_Boolean    DoInternalizeSelection(Environment* ev, 
  60.                                                ODStorageUnit* sourceSU, 
  61.                                                FW_CCloneInfo* cloneInfo);
  62.  
  63.     virtual FW_MProxy*    IsSelectionOnlyOneProxy(Environment* ev) const;
  64.                         
  65. //----------------------------------------------------------------------------------------
  66. //    New API
  67. //
  68.   public:
  69.     void                 SetProxy(Environment* ev, CEmbedProxy* proxy);
  70.     CEmbedProxy*         GetProxy(Environment* ev) const;
  71.                                 
  72. //----------------------------------------------------------------------------------------
  73. //    Data Members
  74. //
  75.   private:
  76.     CEmbedPart*            fEmbeddingPart;
  77.     CEmbedProxy*        fProxy;
  78. };
  79.  
  80. //========================================================================================
  81. //    CEmbedSelection Inlines
  82. //========================================================================================
  83.  
  84. inline CEmbedProxy* CEmbedSelection::GetProxy(Environment* ev) const
  85. {
  86.     return fProxy;
  87. }
  88.  
  89. #endif